<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style>
      .div1 {
        margin: 0;
        width: 400px;
        height: 300px;
        border: 4px solid aqua;
      }
      .div2 {
        /*box-sizing: border-box; 默认content-box*/
        height: 200px;
        width: 300px;
        /*background-color: #f00;*/
        margin: 10px 20px;
        padding: 10px 20px 30px 40px;
        border: 2px solid pink;
      }
    </style>
  </head>
  <body>
    <div class="div1">
      <div class="div2">
        shsrthtr shyt rshrsthtrsh s hfsad garsag rda gas gag arg a grda gar gra
        ga gr a rge
      </div>
    </div>
  </body>
</html>
